<?
if ($_POST[action] == "resume_postcontact")
{

	if ($_POST['rc_fname'] == '')
	{
		$err .= "First name is required<br>";
	}
	if ($_POST[rc_lname] == '')
	{
		$err .= "Last Name is required<br>";
	}
	if ($_POST[rc_email] == '')
	{
		$err .= "Contact Email  is required<br>";
	}elseif(!ereg("^[a-zA-Z0-9][a-zA-Z0-9_\.]+[a-zA-Z0-9]@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$", $_POST[rc_email])){
	      $err .= "Invalid Email address<br />";
	  
	}
	if ($_POST[rc_phone] == '')
	{
		$err .= "Contact Phone is required<br>";
	}
	if (trim($_POST[rc_subject]) == '')
	{
		$err .= "Subject is required<br>";
	}
	if (trim(strip_tags($_POST[rc_detail])) == '')
	{
		$err .= "Resume detail is required<br>";
	}
	if ($err == '')
	{
		include ("./insert_do/resumepostcontact.php");
	}
	else
	{
		$rc_fname = htmlspecialchars(trim($_POST[rc_fname]));
		$rc_lname = htmlspecialchars(trim($_POST[rc_lname]));
		$rc_email = htmlspecialchars(trim($_POST[rc_email]));
		$rc_phone = htmlspecialchars(trim($_POST[rc_phone]));
		$rc_detail = trim($_POST[rc_detail]);
		$rc_subject = trim($_POST[rc_subject]);
        $status = 1;
	}

}
?>